package com.cashmama.market.api.application.controller.user.request;

import com.cashmama.market.api.infras.utils.ParamsValidateUtil;
import com.cashmama.market.api.infras.utils.StringUtils;
import com.fqgj.common.api.ParamsObject;

/**
 * @program: market-api
 * @description
 * @author: frank
 * @create: 2020-03-26 12:02
 **/
public class UserSaveFeedBackVO extends ParamsObject {

    /**
     * 主题
     */
    private String title;

    /**
     * 建议内容
     */
    private String content;

    /**
     * 反馈图片地址
     */
    private String imageUrl;

    public String getImageUrl() {
        return imageUrl;
    }

    public UserSaveFeedBackVO setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public void validate() {
        ParamsValidateUtil.checkParams(StringUtils.isEmpty(content), "content can not be empty");
    }
}
